package com.ebring.shareEducation.dao;

import java.util.List;

import com.ebring.shareEducation.bean.admin.InstitutionAll;
import org.apache.ibatis.annotations.Param;

import tk.mybatis.mapper.common.Mapper;


public interface InstitutionAllMapper extends Mapper<InstitutionAll>{
	
	//查询所有
	List<InstitutionAll> selectLevelAll(String institutionId);
	
	//查询下级机构
	/*List<InstitutionAll> selectGetLower(String instlevel);*/

	//查询下级机构
	List<InstitutionAll> selectGetLower(String institutionId);

	//查询下级机构
	List<InstitutionAll> selectGetLower1(@Param("institutionId") String institutionId);
	
	//查询上级机构
	InstitutionAll selectgetParent(String parentId);
	
	//模糊查询
	List<InstitutionAll> selectLike(@Param("institutionId") String institutionId,
                                    @Param("institutionName") String institutionName,
                                    @Param("parentId") String parentId,
                                    @Param("institutionlevel") String institutionlevel);
	//根据机构id查询
	InstitutionAll selectByPKey(@Param("institutionId") String institutionId);
}
